﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Capitulos" targetNamespace="http://tempuri.org/Capitulos.xsd" xmlns:mstns="http://tempuri.org/Capitulos.xsd" xmlns="http://tempuri.org/Capitulos.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="igrejaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="igrejaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.htmltortf.Properties.Settings.GlobalReference.Default.igrejaConnectionString" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CapituloTableAdapter" GeneratorDataComponentClassName="CapituloTableAdapter" Name="Capitulo" UserDataComponentName="CapituloTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="igrejaConnectionString (Settings)" DbObjectName="Capitulo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Capitulo] WHERE (([capitulo_id] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="capitulo_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Capitulo] ([ncapitulo], [capitulo], [livro_id]) VALUES (@p1, @p2, @p3)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ncapitulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="capitulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        Capitulo.*
FROM            Capitulo</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Capitulo] SET [ncapitulo] = @p1, [capitulo] = @p2, [livro_id] = @p3 WHERE (([capitulo_id] = @p4))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ncapitulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="capitulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="capitulo_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="capitulo_id" DataSetColumn="capitulo_id" />
              <Mapping SourceColumn="ncapitulo" DataSetColumn="ncapitulo" />
              <Mapping SourceColumn="capitulo" DataSetColumn="capitulo" />
              <Mapping SourceColumn="livro_id" DataSetColumn="livro_id" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Capitulos" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="Capitulos" msprop:Generator_UserDSName="Capitulos" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Capitulo" msprop:Generator_UserTableName="Capitulo" msprop:Generator_RowDeletedName="CapituloRowDeleted" msprop:Generator_TableClassName="CapituloDataTable" msprop:Generator_RowChangedName="CapituloRowChanged" msprop:Generator_RowClassName="CapituloRow" msprop:Generator_RowChangingName="CapituloRowChanging" msprop:Generator_RowEvArgName="CapituloRowChangeEvent" msprop:Generator_RowEvHandlerName="CapituloRowChangeEventHandler" msprop:Generator_TablePropName="Capitulo" msprop:Generator_TableVarName="tableCapitulo" msprop:Generator_RowDeletingName="CapituloRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="capitulo_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="capitulo_id" msprop:Generator_ColumnPropNameInRow="capitulo_id" msprop:Generator_ColumnVarNameInTable="columncapitulo_id" msprop:Generator_ColumnPropNameInTable="capitulo_idColumn" type="xs:int" />
              <xs:element name="ncapitulo" msprop:Generator_UserColumnName="ncapitulo" msprop:Generator_ColumnPropNameInRow="ncapitulo" msprop:Generator_ColumnVarNameInTable="columnncapitulo" msprop:Generator_ColumnPropNameInTable="ncapituloColumn" type="xs:int" minOccurs="0" />
              <xs:element name="capitulo" msprop:Generator_UserColumnName="capitulo" msprop:Generator_ColumnPropNameInRow="capitulo" msprop:Generator_ColumnVarNameInTable="columncapitulo" msprop:Generator_ColumnPropNameInTable="capituloColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="536870911" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="livro_id" msprop:Generator_UserColumnName="livro_id" msprop:Generator_ColumnPropNameInRow="livro_id" msprop:Generator_ColumnVarNameInTable="columnlivro_id" msprop:Generator_ColumnPropNameInTable="livro_idColumn" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Capitulo" />
      <xs:field xpath="mstns:capitulo_id" />
    </xs:unique>
  </xs:element>
</xs:schema>